<!DOCTYPE html>
<html lang="en" ng-app="AldeasInfantiles">
  <head>
    <title>Aldeas Infantiles | Control de Inventarios</title>
    <?php
      $this->load->view('head_view');
    ?>
    <script src="<?php echo base_url("assets/js/login-view.js"); ?>"></script>
  </head>

  <body>
    <div class="container" ng-controller="Login">
      <div class="header">
        <h3 class="text-muted">Aldeas Infantiles - Control de Inventarios</h3>
      </div>
      <form  role="form" id="form-login" class="form-signin" autocomplete="off">
        <h3>Iniciar sesi&oacute;n</h3>
        <div class="form-group">
          <label for="login.loginuser">Usuario</label>
          <input type="text" class="form-control" ng-model="login.loginuser" id="login.loginuser" name="login.loginuser" placeholder="Usuario" title="Escriba el nombre de usuario" autocomplete="off" required>
        </div>
        <div class="form-group">
          <label for="login.loginpassword">Contrase&ntilde;a</label>
          <input type="password" class="form-control" ng-model="login.loginpassword" id="login.loginpassword" name="login.loginpassword" placeholder="Contrase&ntilde;a" title="Escriba la contrase&ntilde;a" autocomplete="off" required>
        </div>
        <div class="form-group">
          <label for="selectedCountry">Localidad</label>
          <select id="selectedCountry" name="selectedCountry" class="form-control" title="Seleccione el pa&iacute;s del usuario" ng-change="requestDorps()"
            ng-model="selectedCountry"
            ng-options="country.id_pais as country.ds_pais for country in countries"
            >
          </select>
        </div>
        <input type="submit" class="btn btn-primary" id="login-btn" value="Iniciar Sesi&oacute;n" ng-click="getParams(login)" />
        <div id="error-login" class="alert alert-dismissable alert-danger {{hiddenClass}}">
          <strong>Mensaje!</strong> <span>{{errorMessage}}</span>
        </div>
      </form>
      <?php
        $this->load->view('footer_view');
      ?>
    </div>
  </body>
</html>